package com.javase.Homework;


public class Homework08 {
    public static void main(String[] args) {
        Circle01 c = new Circle01();
        PassObject passObject = new PassObject();
        passObject.printAreas(c,5);
    }
}

class Circle01{
    double radius;
    public double findAreas(double times){
        return radius*radius*Math.PI;
    }
}
class PassObject{
    public void printAreas(Circle01 c, int times){
        System.out.println("Radius\t\tArea");
        for (c.radius = 1; c.radius <= times;c.radius++){
            System.out.println(c.radius+"\t\t"+c.findAreas(c.radius));
        }
    }
}
